package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/19  15:01
 */
@ApiModel("保存用户参数")
public class SaveUserEvt implements Serializable {
    private static final long serialVersionUID = -4687959021207987811L;
    @ApiModelProperty("用户基本信息")
    private UserInfoEvt userInfo;
    @ApiModelProperty("用户安全策略信息")
    private UserPolicyEvt userPolicy;
    @ApiModelProperty("需要添加的用户组ID,包括组织机构id")
    private List<String> addGroupIds;
    @ApiModelProperty("需要删除的用户组ID,包括组织机构id")
    private List<String> delGroupIds;
    @ApiModelProperty("需要添加的角色id")
    private List<String> addRoleIds;
    @ApiModelProperty("需要删除的角色id")
    private List<String> delRoleIds;
    @ApiModelProperty("需要添加的功能权限id")
    private List<String> addPermissionIds;
    @ApiModelProperty("需要删除的功能权限id")
    private List<String> delPermissionIds;
    @ApiModelProperty("需要添加的资源权限")
    private List<ResourceEvt> addResource;
    @ApiModelProperty("需要删除的资源权限")
    private List<ResourceEvt> delResource;

    public UserInfoEvt getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoEvt userInfo) {
        this.userInfo = userInfo;
    }

    public UserPolicyEvt getUserPolicy() {
        return userPolicy;
    }

    public void setUserPolicy(UserPolicyEvt userPolicy) {
        this.userPolicy = userPolicy;
    }

    public List<String> getAddGroupIds() {
        return addGroupIds;
    }

    public void setAddGroupIds(List<String> addGroupIds) {
        this.addGroupIds = addGroupIds;
    }

    public List<String> getDelGroupIds() {
        return delGroupIds;
    }

    public void setDelGroupIds(List<String> delGroupIds) {
        this.delGroupIds = delGroupIds;
    }

    public List<String> getAddRoleIds() {
        return addRoleIds;
    }

    public void setAddRoleIds(List<String> addRoleIds) {
        this.addRoleIds = addRoleIds;
    }

    public List<String> getDelRoleIds() {
        return delRoleIds;
    }

    public void setDelRoleIds(List<String> delRoleIds) {
        this.delRoleIds = delRoleIds;
    }

    public List<String> getAddPermissionIds() {
        return addPermissionIds;
    }

    public void setAddPermissionIds(List<String> addPermissionIds) {
        this.addPermissionIds = addPermissionIds;
    }

    public List<String> getDelPermissionIds() {
        return delPermissionIds;
    }

    public void setDelPermissionIds(List<String> delPermissionIds) {
        this.delPermissionIds = delPermissionIds;
    }

    public List<ResourceEvt> getAddResource() {
        return addResource;
    }

    public void setAddResource(List<ResourceEvt> addResource) {
        this.addResource = addResource;
    }

    public List<ResourceEvt> getDelResource() {
        return delResource;
    }

    public void setDelResource(List<ResourceEvt> delResource) {
        this.delResource = delResource;
    }

    @Override
    public String toString() {
        return "SaveUserEvt{" +
            "userInfo=" + userInfo +
            ", addGroupIds=" + addGroupIds +
            ", delGroupIds=" + delGroupIds +
            ", addRoleIds=" + addRoleIds +
            ", delRoleIds=" + delRoleIds +
            ", addPermissionIds=" + addPermissionIds +
            ", delPermissionIds=" + delPermissionIds +
            ", addResource=" + addResource +
            ", delResource=" + delResource +
            '}';
    }
}
